package com.qst.crop.service.Impl;

import com.qst.crop.common.Result;
import com.qst.crop.mapper.UserMapper;
import com.qst.crop.pojo.User;
import com.qst.crop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByUsername(String username) {
        User u = userMapper.findByUsername(username);
        return u;
    }
}
